package com.ruoyi.business.mapper;

import com.ruoyi.business.entity.ChatContent;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.business.entity.dto.Friends;
import com.ruoyi.business.entity.dto.SellerFriends;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Ao
 * @since 2024-01-17
 */
public interface FrontChatContentMapper extends BaseMapper<ChatContent> {

    List<Friends> getFriends(String userid);

    List<ChatContent> getContent(@Param("myuserid") String myuserid, @Param("friendid") String friendid, @Param("homestayId") Long homestayId);

    Integer updateReadStatus(@Param("myuserid") String myuserid, @Param("friendid") String friendid, @Param("homestayId") Long homestayId);

    List<SellerFriends> getSellerFriends(@Param("myuserid") String myuserid,@Param("myType") Integer myType);
}
